//
//  MyGolfReserveCell.swift
//  baihuiju
//
//  Created by 赵家彬 on 2018/6/28.
//  Copyright © 2018年 赵家彬. All rights reserved.
//

import UIKit

class MyGolfReserveCell: UITableViewCell {
    
    @IBOutlet weak var lblReserveDate: UILabel!
    
    @IBOutlet weak var lblReservePlace: UILabel!
    
    @IBOutlet weak var lblReserveTime: UILabel!
    

    override func awakeFromNib() {
        super.awakeFromNib()
        self.selectionStyle = .none
        
    }
    
    var model:MyGolfReserveModel = MyGolfReserveModel() {
        didSet {
            lblReserveDate.text = model.date
            lblReservePlace.text = model.golf_name
            lblReserveTime.text = model.time
            if model.time == "0" {
                lblReserveTime.text = "上午"
            } else if model.time == "1" {
                lblReserveTime.text = "下午"
            }
        }
    }

    
}
